/**
 * 
 */
package org.ssh2Maven.model.systemModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author guangz
 * 
 */
@Entity
@Table(name = "tb_Sys_Function")
public class SystemFunction
{
	private int functionId;

	private String functionName;

	private String functionUrl;

	private String iconUrl;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getFunctionId()
	{
		return functionId;
	}

	public void setFunctionId(int functionId)
	{
		this.functionId = functionId;
	}

	@Column(length = 25, nullable = false, unique = true)
	public String getFunctionName()
	{
		return functionName;
	}

	public void setFunctionName(String functionName)
	{
		this.functionName = functionName;
	}

	@Column(length = 100, nullable = false)
	public String getFunctionUrl()
	{
		return functionUrl;
	}

	public void setFunctionUrl(String functionUrl)
	{
		this.functionUrl = functionUrl;
	}

	@Column(length = 100)
	public String getIconUrl()
	{
		return iconUrl;
	}

	public void setIconUrl(String iconUrl)
	{
		this.iconUrl = iconUrl;
	}

	@Override
	public String toString()
	{
		return "SystemFunction [functionId=" + functionId + ", functionName=" + functionName + ", functionUrl=" + functionUrl + ", iconUrl="
				+ iconUrl + "]";
	}
}
